import wx


# Some classes to use for the notebook pages.  Obviously you would
# want to use something more meaningful for your application, these
# are just for illustration.

class PageOne(wx.Panel):
    def __init__(self, parent):
        wx.Panel.__init__(self, parent)
        
	# A button

	self.button =wx.Button(self, label="This is a Button", pos=(20, 45))
        t = wx.StaticText(self, -1, "This is a text", (20,20))
        t = wx.StaticText(self, -1, "Hello!!!", (20,30))
        t = wx.StaticText(self, -1, "Widgets do nothing.", (10,185))        
        # the edit control - one line version.
        ##self.lblname = wx.StaticText(self, label="EDITBOX", pos=(50,75))
        self.editbox = wx.TextCtrl(self, value="This is an editbox", pos=(20, 90), size=(140,-1))
        # Checkbox
        self.checkbox = wx.CheckBox(self, label="This is a checkbox", pos=(20,140))
                # Radio Boxes
        radioList = ['Radio Button1', 'Radio Button2','Radio Button3','Radio Button4']
        rb = wx.RadioBox(self, label="This is a radiobox", pos=(135, 15), choices=radioList,  majorDimension=2,
                         style=wx.RA_SPECIFY_COLS)
                # the combobox Control
        self.sampleList = ['Field1', 'Field2','Field3','Field4']
        self.textcombobox = wx.StaticText(self, label="This is a combobox", pos=(220, 120))
        self.combobox = wx.ComboBox(self, pos=(240, 140), size=(95, -1), choices=self.sampleList, style=wx.CB_DROPDOWN)
        

class PageTwo(wx.Panel):
    def __init__(self, parent):
        wx.Panel.__init__(self, parent)
        t = wx.StaticText(self, -1, "T.E.S.T.", (40,40))
        t = wx.StaticText(self, -1, "11.11.2012", (40,50))
        t = wx.StaticText(self, -1, "By Sheogorath", (40,60))
        t = wx.StaticText(self, -1, "WxPython.org", (10,185))
        t = wx.StaticText(self, -1, "Make applications with WxPython tools!", (20,90))

#class PageThree(wx.Panel):
 #   def __init__(self, parent):
  #      wx.Panel.__init__(self, parent)
   #     t = wx.StaticText(self, -1, "This is a PageThree object", (60,60))


class MainFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__(self, None, title="This is a window")

        # Here we create a panel and a notebook on the panel
        p = wx.Panel(self)
        nb = wx.Notebook(p)

        # create the page windows as children of the notebook
        page1 = PageOne(nb)
        page2 = PageTwo(nb)
        #page3 = PageThree(nb)

        # add the pages to the notebook with the label to show on the tab
        nb.AddPage(page1, "Main Page")
        nb.AddPage(page2, "About")
        #nb.AddPage(page3, "Page 2")

        # finally, put the notebook in a sizer for the panel to manage
        # the layout
        sizer = wx.BoxSizer()
        sizer.Add(nb, 1, wx.EXPAND)
        p.SetSizer(sizer)


if __name__ == "__main__":
    app = wx.App()
    MainFrame().Show()
    app.MainLoop()
